package com.bw.my.mvvm.user.model;

import com.bw.mvvm.entity.BaseEntity;
import com.bw.mvvm.mvvm.model.BaseModel;
import com.bw.mvvm.network.load.HttpEnum;
import com.bw.mvvm.network.load.HttpFactory;
import com.bw.my.mvvm.user.Api;

import java.util.HashMap;

import io.reactivex.Observable;

public class UserUpdateModel extends BaseModel {

    public Observable<BaseEntity> requestUpdate(HashMap<String, Object> map) {
        return changeFunc(HttpFactory.create(HttpEnum.TokenSign)
                .getRetrofit()
                .create(Api.class)
                .requestForget(createBody(map)));
    }
    public Observable<BaseEntity> requestSet(HashMap<String, Object> map) {
        return changeFunc(HttpFactory.create(HttpEnum.TokenSign)
                .getRetrofit()
                .create(Api.class)
                .requestForget(createBody(map)));
    }
}
